arithmetic and geometric progression